package com.example.computer_exam_training_sys.service.impl;

import com.example.computer_exam_training_sys.mapper.ExamAnalysisMapper;
import com.example.computer_exam_training_sys.service.ExamAnalysisService;
import com.example.computer_exam_training_sys.vo.ExamPaperAnalysisResult;
import com.example.computer_exam_training_sys.vo.ExamPaperSummary;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExamAnalysisServiceImpl  implements ExamAnalysisService {

    @Autowired
    private ExamAnalysisMapper examAnalysisMapper;

    @Override
    public List<ExamPaperAnalysisResult> getExamPaperAnalysis(Integer paperId, int offset, int size) {
        return examAnalysisMapper.getExamPaperAnalysis(paperId, offset, size);
    }

    @Override
    public ExamPaperSummary getPaperSummary(Integer paperId) {
        return examAnalysisMapper.getPaperSummary(paperId);
    }
}
